package com.iring.service.common.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iring.dao.common.DeviceTrunkDao;
import com.iring.domain.common.DeviceTrunk;
import com.iring.service.common.DeviceTrunkService;

/**
 * @author wanggan
 */
@Service
public class DeviceTrunkServiceImpl implements DeviceTrunkService {

    @Autowired
    DeviceTrunkDao deviceTrunkDao;

    @Override
    public DeviceTrunk save(DeviceTrunk deviceTrunk) {
        return deviceTrunkDao.save(deviceTrunk);
    }

    @Override
    public DeviceTrunk findByMacAndUsername(String mac, String username) {
        return deviceTrunkDao.findByMacAndUsername(mac, username);
    }
}
